package helloworld;

/**
 *
 * @author W.
 */
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet 
{ 
    public void doGet(HttpServletRequest req,HttpServletResponse res) 
            throws ServletException, IOException , NumberFormatException 
    { 
        res.setContentType("text/html");
        
        PrintWriter out = res.getWriter(); 
        out.println("<html>"); 
        out.println("<head><title>Hello World</title></head>"); 
        out.println("<body>"); 
        
        String size = req.getParameter("taille"); 
        
        //int n = Integer.parseInt(req.getParameter("repeter")); 

        for (int i=0; i<3; i++) 
            out.println("<font size="+size+">Hello World<br/></font>"); 
        
        out.println("</body>"); out.println("</html>");
    }
}
